package com.diaohaiwen.basic.websockt.controller;

import com.diaohaiwen.basic.websockt.service.FileService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 刁海文
 * @since 2023/12/9 23:03
 */
@RestController
@RequestMapping("/file")
public class FileController {

    @Resource
    FileService fileService;

    @GetMapping("/download")
    public void download(String noticeId) {
        fileService.download(noticeId);
    }
}
